<template>
  <div ref="map"
    :class="$style.body">

  </div>
</template>

<script>
import echarts from 'echarts'

export default {
  data() {
    return {
      chart: null
    }
  },

  methods: {
    render(options) {
      this.chart.setOption(options)
    }
  },

  mounted() {
    this.chart = echarts.init(this.$refs.map)
  }
}
</script>

<style module lang="scss">
.body {
  height: 100%;
}
</style>
